package com.zhang.internalcommon.constant;


import lombok.Getter;

public enum CommonStatusEnum {

	VERIFICATION_CODE_ERROR(1099, "验证码不正确"),
	TOKEN_ERROR(1199, "token错误"),
	SUCCESS(1, "success"),
	FAIL(0, "fail"),
	PRICE_RULE_EMPTY(1300, "计价规则不存在"),
	USER_NOT_EXISTS(1200, "当前用户不存在"),
	MAP_DISTRICT_ERROR(1400, "请求地图错误"),
	DRIVER_CAR_BIND_NOT_EXISTS(1500, "司机和车辆绑定关系不存在"),
	DRIVER_CAR_BIND_EXISTS(1502, "司机和车辆绑定关系已存在，请勿重复绑定"),
	DRIVER_NOT_EXISTS(1501, "司机不存在"),
	CAR_BIND_EXISTS(1503, "司机绑定关系已存在，请勿重复绑定"),
	PRICE_RULE_EXISTS(1301, "计价规则存在"),
	PRICE_RULE_NOT_EDIT(1302, "计价规则没有变化"),
	PRICE_RULE_CHANGED(1303, "计价规则有变化"),
	DRIVER_BIND_EXISTS(1504, "车辆绑定关系已存在，请勿重复绑定"),
	DEVICE_IS_BLACK(1601, "设备超过下单次数"),
	CITY_SERVICE_NOT_SERVICE(1602, "当前城市不提供叫车服务"),
	CITY_DRIVER_EMPTY(1505, "当前城市没有可用的司机"),
	AVAILABLE_DRIVER_EMPTY(1506, "可用的司机为空"),
	ORDER_GOING_ON(1600, "有正在进行的订单"),
	ORDER_CANCEL_ERROR(1603, "订单取消失败"),
	ORDER_NOT_HAVE_DRIVER(1604,"暂时无人接单，订单已取消，请稍后再试"),
	VALIDATION_EXCEPTION(1700,"统一验证框架错误提示")
	;

	@Getter
	private int code;
	@Getter
	private String value;

	CommonStatusEnum(int code, String value) {
		this.code = code;
		this.value = value;
	}
}
